package gui;

import javax.swing.JFrame;
import javax.swing.JTextField;

public class Main extends JFrame {
	private static JFrame screen;
	
	public static JFrame getCurrentFrame() {
		if (screen == null) {
			screen = new SearchScreen();
		}
		return screen;
	}
	public static void setMainScreen(JFrame newFrame) { 
		screen = newFrame;
		
	}
	public static void main(String args[]) {
			JFrame main = getCurrentFrame();
			main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			main.setSize(800,400);
			main.setVisible(true);
			/**
			while(true) {
				if (main != getCurrentFrame()) {
					main = getCurrentFrame();
					main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					main.setSize(800,400);
					main.setVisible(true);
				}
			}
			*/
	}
}
